﻿<!--
///////////////////////////////////////////////////////////////////////////////
//
//  WinnerDisplayControl.xaml
//
//
// Copyright 2008 Microsoft Corporation. All Rights Reserved.
//
// This file is licensed as part of the Silverlight 2 SDK, for details look here: http://go.microsoft.com/fwlink/?LinkID=111970&clcid=0x409
//
///////////////////////////////////////////////////////////////////////////////
-->
<UserControl
	xmlns="http://schemas.microsoft.com/client/2007"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="SilverlightChess.WinnerDisplayControl"
	d:DesignWidth="424" d:DesignHeight="219">
	<UserControl.Resources>
		<Storyboard x:Name="Intro">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
			</DoubleAnimationUsingKeyFrames>            
		</Storyboard>
		<Storyboard x:Name="Outro">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)" BeginTime="00:00:00">
				<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" Opacity="0" >
		<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="#FF767676" Stroke="#FF000000" RadiusY="14" RadiusX="14"/>
		<Button Height="35" HorizontalAlignment="Center" VerticalAlignment="Bottom" Content="Ok" d:LayoutOverrides="VerticalAlignment" Width="100" Margin="0,0,0,32" Click="Button_Click"/>
		<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal" Margin="0,-54,0,0" >
			<TextBlock FontSize="20" x:Name="Winner" FontWeight="Bold" TextWrapping="Wrap"/>
			<TextBlock FontSize="20" FontWeight="Bold" Text=" Wins!" TextWrapping="Wrap"/>
		</StackPanel>
	</Grid>
</UserControl>